// 引入
import request from '@/utils/http/request_product';
import { AttrListModel } from './model/attrModel';

// 获取平台属性列表
export const getAttrListApi = (
  category1Id: number,
  category2Id: number,
  category3Id: number
) => {
  return request.get<any, AttrListModel>(
    `/admin/product/attrInfoList/${category1Id}/${category2Id}/${category3Id}`
  );
};

// 保存平台属性
export const saveAttrListApi = (info: any) => {
  return request.post(`/admin/product/saveAttrInfo`, info);
};

// 删除平台属性
export const delAttrApi = (id: number) => {
  return request.delete(`/admin/product/deleteAttr/${id}`);
};
